package com.gaswell.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gaswell.entity.Qba01;
import com.gaswell.entity.Qba01M;
import com.gaswell.vo.Qba01Count;
import org.springframework.web.bind.annotation.RequestParam;

import java.sql.Date;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/**
 * <p>
 * 采气井日数据 服务类
 * </p>
 *
 * @author Lei Wang
 * @since 2022-05-24
 */
public interface IQba01MService extends IService<Qba01M> {
    public Future<Qba01> getJiYeAndDDThread(Qba01 qba01);
    public CompletableFuture<String> getJiYeAndDDThreadGroupByDate(List<Qba01> qba01s, String date, List<Qba01> result);
    public List<String> getJiYeAndDD(Qba01 qba01);

    public List<Qba01Count> countQba01(List<String> ywbhs, List<String> zwbhs, int total, Date start);

//    public List<String> getState(Qba01 qba01);

    public IPage<Qba01M> getAllLastest(IPage<Qba01M> page, List<String> jhs);
    public List<Qba01M> getLastest();
    public List<Qba01M> getLastest2();

}